import updateShader from "./updateShader";

class IndexP {
    constructor(){
        this.originTileset = null;
    }
    setCustomShader(tileset, fs) {
        if (tileset != this.originTileset) {
            this.originTileset = tileset;
        }
        if (!tileset){
            return;
        }
        tileset.tileVisible.addEventListener(function (tile) {
            updateShader.update(tile, fs);
        }, this);
    }
}
export default new IndexP();